import request from '@/utils/request'

// 查询商品延期信息列表
export function queryCmdtDelayInfoList(query) {
    return request({
        url: '/cmdtDelay/queryCmdtDelayInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 新增商品延期信息
export function addCmdtDelayInfo(data) {
    return request({
        url: '/cmdtDelay/addCmdtDelayInfo.action',
        method: 'post',
        data: data
    })
}

// 修改商品延期信息
export function updateCmdtDelayInfo(data) {
    return request({
        url: '/cmdtDelay/updateCmdtDelayInfo.action',
        method: 'put',
        data: data
    })
}

// 删除商品延期信息
export function delCmdtDelayInfo(data) {
    return request({
        url: '/cmdtDelay/delCmdtDelayInfo.action',
        method: 'delete',
        data: data
    })
}

// 查询商品延期行情列表
export function getCmdtDelayPriceList(query) {
    return request({
        url: '/cmdtDelay/queryCmdtPriceList.action',
        method: 'get',
        params: query
    })
}

// 查询商品延期行情曲线信息
export function getCmdtDelayPriceCurve(query) {
    return request({
        url: '/cmdtDelay/queryCmdtPriceCurve.action',
        method: 'get',
        params: query
    })
}

